<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns="http://www.w3.org/1999/html" xmlns:th="http://www.thymeleaf.org">
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
<script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>

<head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
    <meta content="" name="description">
    <meta content="" name="author">

    <title>Dashboard Template for Bootstrap</title>
    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}">
    <link rel="stylesheet" th:href="@{/css/index1.css}"/>

    <!-- Custom styles for this template -->
    <link rel="stylesheet" th:href="@{/css/dashboard.css}">
    <style type="text/css">
        /* Chart.js */

        @-webkit-keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        @keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        .chartjs-render-monitor {
            -webkit-animation: chartjs-render-animation 0.001s;
            animation: chartjs-render-animation 0.001s;
        }
    </style>
</head>

<body>
<!--<div th:replace="~{commons/commons::topbar}"></div>-->


<div class="container-fluid">
    <div class="row">
        <div th:replace="~{commons/commons::sidebar(active='yuce/list.html')}"></div>
        <main class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4" role="main">

            <header>
                <h1>为了精准预测请输入完整高校名</h1>
                <div class="show" >理科预测（只作参考）</div>
                <div class="showTime"></div>
                <script>
                    var t = null;
                    t = setTimeout(time, 1000); //開始运行
                    function time() {
                        clearTimeout(t); //清除定时器
                        dt = new Date();
                        var y = dt.getFullYear();
                        var mt = dt.getMonth() + 1;
                        var day = dt.getDate();
                        var h = dt.getHours(); //获取时
                        var m = dt.getMinutes(); //获取分
                        var s = dt.getSeconds(); //获取秒
                        document.querySelector(".showTime").innerHTML =
                            y +
                            "年" +
                            mt +
                            "月" +
                            day +
                            "日"+
                            "-" +
                            h +
                            "时" +
                            m +
                            "分" +
                            s +
                            "秒";
                        t = setTimeout(time, 1000); //设定定时器，循环运行
                    }
                </script>
            </header>
        <div th:class="row">
            <div th:class="col">
            </div>
            <!--                row分层-->
            <div th:class="col">
                <form th:action="@{/yucel}" method="post" >
                    <li class="input-group-prepend">
                        <input  th:name="name" type="text" placeholder="请输入学校名" value>
                        <button class="btn btn-primary btn-sm" type="submit">预测</button>
                    </li>
                </form>
            </div>
            <div th:class="col">
            </div>
            <!--                style="background-color:beige;"加背景颜色-->
        </div>
            <div class="table-responsive" style="height: 200px; overflow: auto">
                <table class="table table-bordered  table-hover">
                    <thead>
                    <tr th:class="text-center">
                        <th>校徽</th>
                        <th>校名</th>
                        <th>省份</th>
                        <th>文理</th>
                        <th>类型</th>
                        <th>最低分</th>
                        <th>最低位次</th>
                        <th>时间</th>
                        <!--                        <th>操作</th>-->
                    </tr>

                    </thead>
                    <tbody>
                    <!--                    <td th:text="${list.records}"></td>-->
                    <tr th:each="emp:${list.getList()}">
                        <td class="school-icon">
                            <a class="imga" data-publish="">
                                <img alt="Cinque Terre" class="img-responsive" height="60" th:src="${emp.getImgSrc()}"
                                     width="60"></a></td>
                        <td th:text="${emp.getSchoolName()}"></td>
                        <td th:text="${emp.getSchoolPosition()}"></td>
                        <td th:text="${emp.getWL()}"></td>
                        <td th:text="${emp.getType()}"></td>
                        <td th:text="${emp.getMinScore()}"></td>
                        <td th:text="${emp.getMinOrder()}"></td>
                        <td th:text="${emp.getTime()}"></td>
                        <!--                        <td>-->
                        <!--                            <a class="btn btn-sm btn-primary">详情</a>-->
                        <!--                        </td>-->
                    </tr>

                    </tbody>
                </table>

            </div>
            <table class="table table-bordered  table-hover">
                <thead>
                <tr th:class="text-center">
                    <th>分数</th>
                    <th>概率</th>
                    <!--                        <th>操作</th>-->
                </tr>

                </thead>
                <tbody>
                <!--                    <td th:text="${list.records}"></td>-->
                <tr th:class="text-center"><td th:text="'小于'+(${mun}-60)">null</td><td th:text="百分之五"></td></tr>
                <tr th:class="text-center"><td th:text="${mun}-60+'-'+(${mun}-10)">null</td><td th:text="百分之三十"></td></tr>
                <tr th:class="text-center"><td th:text="${mun}-10+'-'+(${mun}+10)">null</td><td th:text="百分之六十"></td></tr>
                <tr th:class="text-center"><td th:text="(${mun}+10)+'-'+(${mun}+50)">null</td><td th:text="百分之八十五"></td></tr>
                <tr th:class="text-center"><td th:text="'大于'+(${mun}+50)">null</td><td th:text="百分之九十五"></td></tr>


                    <!--                        <td>-->
                    <!--                            <a class="btn btn-sm btn-primary">详情</a>-->
                    <!--                        </td>-->


                </tbody>
            </table>

        </main>
    </div>
</div>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="asserts/js/jquery-3.2.1.slim.min.js" type="text/javascript"></script>
<script src="asserts/js/popper.min.js" type="text/javascript"></script>
<script src="asserts/js/bootstrap.min.js" type="text/javascript"></script>

<!-- Icons -->
<script src="asserts/js/feather.min.js" type="text/javascript"></script>
<script>
    feather.replace()
</script>

<!-- Graphs -->
<script src="asserts/js/Chart.min.js" type="text/javascript"></script>

<script>
    // <li><a th:href="'http://localhost:8080/score/'+"
    // >转跳!</a></li>
    var page = document.getElementById("page1").value;
    console.log(page);
    var ctx = document.getElementById("myChart");
    var myChart = new Chart(ctx, {
        type: 'line',
        data: {
            labels: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
            datasets: [{
                data: [15339, 21345, 18483, 24003, 23489, 24092, 12034],
                lineTension: 0,
                backgroundColor: 'transparent',
                borderColor: '#007bff',
                borderWidth: 4,
                pointBackgroundColor: '#007bff'
            }]
        },
        options: {
            scales: {
                yAxes: [{
                    ticks: {
                        beginAtZero: false
                    }
                }]
            },
            legend: {
                display: false,
            }
        }
    });
</script>

</body>

</html>